package JUC.wn_syn_vlo;

/*

要么匿名
clas外好
    不用stat
 */
class offer extends Thread{
    public volatile boolean flag = false;

    @Override
    public void run(){
        System.out.println("f:"+flag);

        flag=true;
        System.out.println("--f:"+flag);
        System.out.println("拿到");
    }
}
public class vlo_ifr_wT {
    public static void main(String[] args) throws Exception{
        offer offer = new offer();
        offer.start();
//        while (true){

        while (offer.flag == false){
            System.out.println("meinadao offer");
        }
        System.out.println("w看见 漏下来w");
//        }
    }
}
